import React, { Component } from 'react'
interface Iprops{
    itemclick:(item:number)=>void;
    lists:Array<number>
    pageindex:number
}
export default class PageContent extends Component<Iprops> {
    constructor(props:Iprops){
        super(props)
    }
  render() {
    return (
      <>
      {this.props.lists.map(item=><div
         key={item} onClick={()=>{this.props.itemclick(item)}}
         className={item===this.props.pageindex?'items tive':'items'}
         >{item}</div>)}
      </>
    )
  }
}
